package com.webapp.domain.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 仲裁
 * @author zern
 *
 */
@Entity
@Table(name = "arbdic")
public class Arbdic extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2274067276206440416L;
	
	private Long id;
	
	private String code;		// 状态码
	
	
	private Disputes disputes;	// 纠纷
	
	private Date createTime;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name = "id")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "code", length = 2)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@OneToOne(mappedBy = "arbdic", fetch = FetchType.LAZY)
	@JSONField(serialize = false)
	public Disputes getDisputes() {
		return disputes;
	}

	public void setDisputes(Disputes disputes) {
		this.disputes = disputes;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	


}
